package com.gopay.common.domain.cloud;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * @ClassName: CloudZhtxNotifyLog
 * @Description: 掌合天下身份证有效期通知日志
 * @author huangcheng
 * @date 2018年1月11日 下午1:49:58
 */
@Entity
@Table(name = "CLOUD_ZHTX_NOTIFY")
public class CloudZhtxNotify extends BaseEntity {
    
    private static final long serialVersionUID = 9087771654503144009L;

    /**
     * 流水号
     */
    private Integer sq;

    /**
     * 通知地址
     */
    private String notifyUrl;

    /**
     * 通知次数
     */
    private Integer notifyCount;

    /**
     * 是否通知成功 1 - 成功（前台通知http响应码“200”或后台通知商户按照要求响应“0000”） 0 - 失败（不满足成功条件均为失败）
     */
    private String isNotifyOk;

    /**
     * 最后通知时间
     */
    private Date lastNotifyTime;

    /**
     * 发送状态 0:待发送; 1:发送成功; 2:发送失败; 3:发送中
     */
    private String sendStatus;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 备注1
     */
    private String remark1;

    /**
     * 备注2
     */
    private String remark2;

    public CloudZhtxNotify() {
    }

    @Id
    @Column(name = "SQ", unique = true, nullable = false, precision = 22, scale = 0)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CLOUD_ZHTX_NOTIFY_LOG_SEQ")
    @SequenceGenerator(name = "CLOUD_ZHTX_NOTIFY_LOG_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "CLOUD_ZHTX_NOTIFY_LOG_SEQ")
    public Integer getSq() {
        return this.sq;
    }

    public void setSq(Integer sq) {
        this.sq = sq;
    }

    @Column(name = "NOTIFY_URL", length = 500)
    public String getNotifyUrl() {
        return this.notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    @Column(name = "NOTIFY_COUNT", precision = 22, scale = 0)
    public Integer getNotifyCount() {
        return this.notifyCount;
    }

    public void setNotifyCount(Integer notifyCount) {
        this.notifyCount = notifyCount;
    }

    @Column(name = "IS_NOTIFY_OK", precision = 1, scale = 0)
    public String getIsNotifyOk() {
        return this.isNotifyOk;
    }

    public void setIsNotifyOk(String isNotifyOk) {
        this.isNotifyOk = isNotifyOk;
    }

    @Column(name = "LAST_NOTIFY_TIME")
    public Date getLastNotifyTime() {
        return this.lastNotifyTime;
    }

    public void setLastNotifyTime(Date lastNotifyTime) {
        this.lastNotifyTime = lastNotifyTime;
    }

    @Column(name = "SEND_STATUS", precision = 1, scale = 0)
    public String getSendStatus() {
        return this.sendStatus;
    }

    public void setSendStatus(String sendStatus) {
        this.sendStatus = sendStatus;
    }

    @Column(name = "CREATE_TIME")
    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "REMARK1", length = 200)
    public String getRemark1() {
        return this.remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    @Column(name = "REMARK2", length = 200)
    public String getRemark2() {
        return this.remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }

}
